package cn.patient.pp.module.report.controller.admin.vo;

import cn.patient.pp.framework.excel.core.annotations.DictFormat;
import cn.patient.pp.framework.excel.core.convert.DictConvert;
import cn.patient.pp.module.system.enums.DictTypeConstants;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.mzt.logapi.starter.annotation.DiffLogField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 上报精神病患者信息新增/修改 Request VO")
@Data
public class PatientInfoSaveReqVO {

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "患者姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "患者姓名不能为空")
    @DiffLogField(name="患者姓名")
    private String patientName;

    @Schema(description = "身份证号码", requiredMode = Schema.RequiredMode.REQUIRED)
    @DiffLogField(name="身份证号码")
    private String idNumber;

    @Schema(description = "性别（1：男，0：女）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "性别（1：男，0：女）不能为空")
    private String gender;

    @Schema(description = "出生日期")
    private LocalDate birthDate;

    @Schema(description = "家庭住址")
    private String address;

    @Schema(description = "联系人姓名")
    private String contactPerson;

    @Schema(description = "联系方式")
    private String contactPhone;

    @Schema(description = "诊断状态：2-排除，1-确诊", example = "1")
    @DiffLogField(name="诊断状态")
    private String diagnosisStatus;

    @Schema(description = "所属行政区划id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11159")
    private Long deptId;

    @Schema(description = "上报状态：1-已上报县级，2-待上报，3-上报省厅成功", example = "2")
    @DiffLogField(name="上报状态")
    private String reportStatus;

    @Schema(description = "上报时间")
    private LocalDateTime reportTime;

    @Schema(description = "上报响应信息（如失败原因）")
    private String reportResponse;

    @Schema(description = "备注", example = "你说的对")
    private String remark;
    @Schema(description = "创建者id", example = "你说的对")
    private String creator;
    @Schema(description = "原始部门id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28910")
    private Long orginDeptId;

}